package leetcode.array;

import java.util.Arrays;

/**
 * Created by Admin on 2020/7/25.
 */
public class Question674 {

    static public int findLengthOfLCIS(int[] nums) {
        if (nums.length<=0)
            return 0;
        int count = 1;
        int max = 1;
        for (int i =0;i<nums.length-1;i++){
            if (nums[i+1] - nums[i]>0){
                count++;
            } else{
                count = 1;
            }
            if (count>max){
                max =count;
            }
        }
        return max;

    }

    public static void main(String[] args) {

        int[] num = {1};
        System.out.println(findLengthOfLCIS(num));
    }
}
